FROM openjdk:17-jdk-slim
MAINTAINER ZhiwenFang <fswan@yeah.net>
RUN mkdir /work
COPY target/new*.jar /work/workflow.jar
#ENV LANG zh_CN.UTF-8
#ENV LANGUAGE zh_CN:zh
#ENV LC_ALL zh_CN.UTF-8
ENV expose 9957
EXPOSE 9957
CMD ["java","--add-exports=java.desktop/com.sun.java.swing.plaf.gtk=ALL-UNNAMED", "--add-exports=java.desktop/sun.awt=ALL-UNNAMED",  "--add-exports=jdk.internal.jvmstat/sun.jvmstat.monitor.event=ALL-UNNAMED",        "--add-exports=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED",  "--add-exports=java.desktop/sun.swing=ALL-UNNAMED",        "--add-exports=jdk.attach/sun.tools.attach=ALL-UNNAMED",   "--add-opens=java.desktop/sun.awt.X11=ALL-UNNAMED",        "--add-opens=java.desktop/javax.swing.plaf.synth=ALL-UNNAMED",     "--add-opens=java.base/java.net=ALL-UNNAMED",  "--add-opens=java.base/java.lang.ref=ALL-UNNAMED", "--add-opens=java.base/java.lang=ALL-UNNAMED",     "--add-opens=java.desktop/javax.swing=ALL-UNNAMED",        "--add-opens=java.desktop/javax.swing.plaf.basic=ALL-UNNAME","-jar","/work/workflow.jar"]
